<?php

namespace app\apishop\validate;

use think\Validate;

/**
 * 商户
 */
class ShopValidate extends  Validate
{
  protected $rule = [
      'key' => 'require|in:name,coverimage',
      'value' => 'require'
  ];

  protected $message = [
        'key.require' => '修改信息未找到',
        'key.in' => '修改字段不存在',
        'value.require' => '修改内容不能为空',
  ];

  protected $scene = [
        'set_filed' => ['key' , 'value']
  ];
}